<?php

use think\facade\Route;
use app\admin\middleware\LoginMiddleware;
use app\admin\middleware\AuthMiddleware;
use app\admin\middleware\OperationLog;

Route::group('upload', function () {
    //上传图片
    Route::post('image', 'upload.Upload/image');
    //上传视频
    Route::post('video', 'upload.Upload/video');
    //上传文件
    Route::post('file', 'upload.Upload/file');
})->middleware([
    LoginMiddleware::class,
    AuthMiddleware::class,
    OperationLog::class
]);